
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type SystemRouteCateRequest struct {

	Pid string `json:"pid" form:"pid"`

	AppName string `json:"app_name" form:"app_name"`

	Name string `json:"name" form:"name"`

	Mark string `json:"mark" form:"mark"`

	Path string `json:"path" form:"path"`

	Sort string `json:"sort" form:"sort"`

	AddTime string `json:"add_time" form:"add_time"`

}

func (r *SystemRouteCateRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *SystemRouteCateRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"pid": "required",

		"app_name": "required",

		"name": "required",

		"mark": "required",

		"path": "required",

		"sort": "required",

		"add_time": "required",

	}
}

func (r *SystemRouteCateRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *SystemRouteCateRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *SystemRouteCateRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
